package com.emergency.db.domain.item;

import com.emergency.base.domain.BaseEntity;

import javax.persistence.*;

//装备剂量
@Entity
@Table(name = "bas_item_dose")
public class ItemDose extends BaseEntity {
    private double dose;//累积剂量

    private String type;//辐射类型

    @OneToOne(targetEntity = Item.class, fetch = FetchType.LAZY)
    @JoinColumn(name = "item_id", referencedColumnName = "id")
    private Item item;

    public double getDose() {
        return dose;
    }

    public void setDose(double dose) {
        this.dose = dose;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Item getItem() {
        return item;
    }

    public void setItem(Item item) {
        this.item = item;
    }
}
